Improve test framework: set TFWSOURCE env var
Add keyring back-compatibility test case