Added null pointer tests