Added test for dbstore.getOrCreate

Fixed syntax
Merge pull request #939 from carolinux/test_coverage_improvements

Added test for dbstore.getOrCreate