added test for oneway to car encoder
minor fix to unit test