Add tests for generating target for null type