Update Railway implementation, including failing test cases.