test: Add a spy type that waits for one or more signals