source-reader-test: use BeforeAndAfterEach to replace deprecated BeforeAndAfter

According to http://doc.scalatest.org/1.0/org/scalatest/BeforeAndAfterEach.html, the usage of BeforeAndAfter is deprecated in favor of BeforeAndAfterEach and BeforeAndAfterAll, which tend to be clearer on the mutability of test fixture.