add test/lib makefile
modify getAccount function