Framework tests and fixes
Move some tests to TestBox