fixed controller test; added validations