Railway firm evaded Sh800m tax, court told