rewritten issue spec using beforeEach for setup of the issue case