added unit tests for base view