added config tests and config functionality