test cofaction => even more tests ... and a few bug fixes