Fixed null pointer bug in TransitDetailsTest