Add parameter to allow enabling/disabling selftests via configure