Add wallet factory tests