added tests for different views