ENG-5013: add more junit tests.