use compile for default instead of test in example