Add tests for shared database