Added tests for null checks and fixed null checks in ProductServiceImpl.