map first test and implementation