Fixed spy directive failing test