Added tests from develop. The test results need to be modified for 2.0.
drop database if exists cachingdb;