fixed db ref in tests #56