added few changes, now the test dont allow writing to a null pointer, but, reading is still possible