chore(maintiain): Add use of spies to test case