fix error
add test to controller and remove cache functionality
add tests