Creating the if condition for the test