Changed visibility of variables to avoid mishandling when inherited.
Added DB tests to test suites.