Updated test code to test:
- Sending callback functions as arguments in upcalls
- Prevention of sending non-JavaScript objects into upcalls