adding more null/ptr test coverage