wrote some tests for list controller and model