adding null: false to test and remove deprecation warnings