Script: extract test data to fixture
Script: add getHash and tests