Added tests to support README examples.