Update unit tests for extension manager keepFile flag

See #8166