Revert "Database tests: removed redundant tests"

This reverts commit b662d49c0703577f2f74c67b97fabb5026da7ad9.