added tests for exception handling in rawFunction and rawObject