A serving officer has been dismissed without notice after reselling driving tests without declaring a business interest.