Strangely failing test