implement first persistence tests for both directions
little test refactoring