add testcases for accounts function