migrated forbiddenConstant and forbiddenClass tests