Created config tests

Fixed some other issues