Add missing nullable constraints

I had to change the factories and tests to be able to generate valid data.