controller test and transaction