added basic test to persistence layer