Update and fix test cases
Add test suite for front controller