added more unit tests for database and document proxies