Test written for mapper class