Fixed testIllegalSubRegion testcase.
Removed unused helper methods for removed test testisAllowed.