Made baseName param in createSpyObj optional