Add tests

Test that bookmarks are written to and read from file.