Add test coverage for new Foo constructor usage