Fixed some more classloader adapter bugs, implemented real tests