Adding tests, spy dependency