Convert the bash script test to Ruby. Also ignore checking duplicates

Test is now fully automated. Also avoid checking duplicates to
preserve the original loading behavior.