Scholarly debates continue regarding what genre (type) of literature were the apocryphal Acts, with the Greek novel often being considered a close relative of these Acts by most. Certainly both the apocryphal Acts, which relate the miraculous deeds of the followers of Jesus, and the novels share in common the aim of entertaining (alongside teaching and admonishing certain values or behaviours).
In the Acts of John, the disciple John is depicted on his journeys to demonstrate the power of God (dating sometime in the second or early third century; available online here). Among these demonstrations or signs are the repeated resurrections of various characters in the story, from bad guys like the priest of Artemis to good guys like the permanently sexually-abstinent Drusiana. Resurrection of the dead is John’s favourite miracle, so to speak. Just about everyone converts as a result of these miracles, including the aforementioned bad guys, so there is a purpose to it all.
One of the “miracles” of John that stands out, however, involves bed-bugs. While staying in an inn at Ephesus, John is trying to catch some wink-eye while other of his followers talk quietly in the background. The bed-bugs are driving John nuts, and so he commands, “I tell you, you bugs, to behave yourselves, one and all; you must leave your home for tonight and be quiet in one place and keep your distance from the servants of God!” (60).
That we, the readers, are meant to be entertained and to laugh is suggested by the fact that John’s followers do laugh, and think that John is just joking (he’s not really commanding bugs, is he?). To these followers’ surprise, they find a mass of bugs waiting just outside the door in the morning, and John says that since the bugs have behaved themselves, they can go back home to bed. But even in this humorous story there is a lesson. Be thou like the bed-bugs, who quietly listen and obey: “This creature listened to a man’s voice and kept to itself and was quiet and obedient; but we who hear the voice of God disobey his commandments and are irresponsible; how long will this go on?”, queries John (61). (All translations, again, are from Schneemelcher).
UPDATE: Once again Ken Penner is on top of things and, in the comments, points to a passage that involves commanding worms in the Testament of Job (of the OT Pseudepigrapha, translation available online here, Greek text here). Job is once again facing the torments which God allows Satan to send upon him, and he shows a particularly heightened ability to withstand and, in what you could call an ascetic spirit (or perhaps just an attempt to ensure that God’s will is done to its completion), even further the torture:
“In great trouble and distress I left the city, and I sat on a dung heap worm-ridden in body. Discharges from my body wet the ground with moisture. Many worms were in my body, and if a worm ever sprang off, I would take it up and return it to its original place, saying, ‘Stay in the same place where you were put until you are directed otherwise by your commander” (Testament of Job 20:7-9; trans by R.P. Spittler in Charlesworth, OTP).
This story is less funny than John’s;)