Tests are optionally compiled

REfs #1