added a test and an attribute to check that input checks were only done once