run self-tests during build