Prepare test code for map viewer.