add controller test,functional test, units test