added tests and issue_data rake task