Add printAllStates
Add test for states
Update error string
Add expected output to config_readback test