Tweaks to class loader and tests.

Signed-off-by: Ben Corlett <bencorlett@me.com>