adding unit tests for second controller example