update of junit tests and added logs