added tests and config