add some junit tests