added unit tests for view controllers