Implements a test map by code.