need tests on views