Added invoice test fromMap