Section 55. Railroad police shall not be entitled to any fees for attendance upon a trial as witnesses for the commonwealth, but they may be allowed their necessary expenses therefor.