Add test coverage for new Foo constructor usage

Fixes https://github.com/nzakas/eslint/issues/354.