add tests for history controller