Add metadata parameter.
Update README to contain test instructions.