added basic junit tests