Fixed compilable code, added failing test.