Weird Unit test failure on class mapping