add cfg tests and fixes
bool tests and fixes