added test on fromMap