add test for proper object instantiation