Updated tests to use the first() operator

JAVA-1215