adding a spec for purchasecommand to test validation