block direct access to lib directory with .htaccess
fix db test: passing config array in getInstance() now