Added mock behaviours and return types for spies.