Added test "A can be persisted when detached B is found before".