added joshen unit tests