add spy to tests