added spec controller test and methods