Move tests to in-binary and fix link args