UPDATED wrote the test that covers the controller .