added SPY tests and call fake functions