test passes for valid inputs