added junit test and instrumental test