Build out account factory. Debug tests