Fixed failing test

Two small changes:
- Fixed the bug making the test fail
- Added *.received.txt to .gitignore to ignore the Approval Testing received files