Fixed monkey patch methods of local tests