remove unnecessary notNullChecks from the tests