test runtime using mem registry, fixed bugs in new runtime registry code