adding expectedFailure decorator conditional