Refactor mvc unit tests