refactor RGN, SOT testing