Fix all warnings in CS tests

There might be some more issues in here.