updated test for null behaviour