junit test updated.