Added tests
Got working for constructor functions and object literals