Fix memory leaks in tests for css module