Fixed CS in tests and examples
Fixed CS in the library code