adding in test for bug report
adding in fix for bug report