Cache and handlers tests