PHP notice fix in test