fixed bug in navigator, added tests for history
added the spec file for history