fixed TestViewable by preserving model_class_reverse_map and restoring i...

...t on test teardown

closes #604