testing mapper exceptions