fix failing junit tests