test double using spy