Added tests files

Added tests files and  test database scripts