improved some generic test functions
fixes for the cstr collocation test