tried to fix views and wrote tests, which aren't working