Added tests for if condition in Active Model callbacks