Add ch_attr with tests, initial commit of testtofrscan.sh