add test code for frontcontroller