add test cases, newaccount func