add local tests for http commands to reduce network overhead