Fixed mapped version and modified test bench to check for correct read/write sequences