RuntimeFrameworkImpl fixes and some tests

@rima-alali  or @iliasger