include rails environment in cache key
dry up the test for Rails