wrote sends email tests for issue invoice feature spec