refactored movie controller, added more tests