allow hash-based initialisation
fix tests to use new API