tests for map and appendDerived