(test) Add unit tests for Account Factory