Fix unit test for filing bugs #6
Add backend code for filing bugs #6