updated controller functionality test and coverage to 100%