added an enable_if decorator for nose tests