Write tests for status controller