DB class tests