Adding a timeout to the test spy to avoid hanging the build