all tests pass locally, but not with r cmd check