Api session controller test