Fixed bugs in FloorPlanDAO and created test cases.