fixed Railcar test

Fixed Unit tests #703