Use compile-testing for unit tests. Add unit test for ImmutableGenerator