tests for input syntax