couldn't get my test jar to run, but i have a suspicion that it's the --gameDir launch argument
but how do i get the launcher to use a custom gameDir? it's probably the Additional json file that they put in the versions folder, but it's undocumented so i'll have to mess around