added junit test case for profile