Slight refactor of toggle directive and test.
Added e2e test for toggle.
Removed more redundant files.