Fixed some checkstyle errors
Added tests for the practicalcontroller