Add a test suite and fix the impressions view