make the reference sequence be part of the fetched path for REST stores
add unit test for REST store
f
REST store bugfixes