Fix test_layers tests. Tentative fix for #248
Merge pull request #249 from dotcloud/fix-tests

Fix test_layers tests. Tentative fix for #248