Improved tests for working when tornado package is not installed. Cleaned tests