test passed for valid inputs