Creates shared examples and optimizes the tests from unnecessary duplication. Fixes #16