Remove broken tests & update build script