FunctionalTests: Test SharedExamples+BeforeEach

Test that beforeEach closures in shared examples are executed prior to
the examples within.

Addresses #156.