Cast mock context to placate travis