Added a test for objects declared on the stack.