fix unit tests for boto < 2.9