adding new test, fixing some bugs
moving out tests in config