test Rules.load

also require dependencies inside the source file. which sucks. should
use commonJS/require.js sometime