added timeouts to the tests
removed the ttl config for the tests
refactored some test vars
set the statusCode to 304 if the image was pulled from the cache
added the query object to the image name hash

This allows the cached to be manually invalidated
1.1.1