Moved self-test to separate binary.