added failing test for functions in objects
fixed test for functions in objects
Merge pull request #3 from Wayla/functions

Functions in objects