added some more junit tests