adding tests, and improving passthrough handling in standalone conversion script