Adding tests to check database detections #46