added tests for valid input