chore(database): Made tests compatible with Elgg 1.x

Avoid referring to legacy class names in database test to avoid
problems with namespaced classes in Elgg 1.x