I solved the problem by supplying -rubygems to ruby, by setting
RUBYOPT=-rubygems, before doing rake test_sqlite3.  The sqlite3-ruby is
installed as a gem.  I wonder why others don't report that.  You guys
test your gems, especially such
foundational ones as activerecord, don't you?  :)