#19 added enum pattern for VIEW_MODES and TEST_MODES