Moved example to it's own package. Added a test for example.