added tests
added config from file