Removed empty and unreachable tests (Fix #4697)