Moves test build, fixes bugs.