add previously failing test and make it pass