Add test for new when signature