Adds test for example in readme