Fixed directionality problems in unit tests.  This was needed as a
result of 49cabdf5feedc305579953de728424fe73e5caf1.