testing exception thrown if no mapping fn