Fix bug in StubHandler. Fix cache_handler_spec.rb. Add StubHandler specs.