Test exit method