db test class