- translated tests in java to scala