prepare tests database connection and context