Move internal testing classes from ExceptionCode to Exception