Removed all use of session variables in tests and added some warning
suppressions.