Wrote test for history view