fix bug in applyArg
tests for federate and sync parsing