added unit tests for history models