Added a test to assert that toggle was actually created. Some refactoring around the tests.
Merge pull request #24 from christriddle/master

Added a test to assert that toggle was actually created. Some refactorin...