More tests, fixing bug in BufferedILGenerator.ByteDistance