add controller test

- [x] add controller test