Optional self-test