Made correction to test_perentage valid condition