Add factory & proxy generator tests