added database-directory test