test passed for the possible 9 inputs