adding some unit tests before changing stuff and adding cofr