Made test of stop groups more efficient
Add nonpreferred transfer penalty to API
Add unit tests to check the effect of the transfer penalty