Task1. tests for controller (worked).