Refactored movies controller; added tests