Translation Memory functional tests

Tests: create, delete, import, clear, cancel clear/delete/delete after clear.
Update to data sql script as some tables have changed.