adding tests for webcuda and fixing random bugs along the way