[tests] fix argument parsing in source