tests for input checks