Refactored home view tests
Added preferences view