Modify case of the if statement for controller test