Optimized Amazon cover retrieval and added unit tests.