Moving test_layers test to cStringIO instead of StringIO