Added test case to check that null pointers are set correctly and accessing invalid memory falls on null. #14