added a new test to ensure we can accept objects in the constructor