better constructor call, better test