There is a missing `end` here; also please use `test do` instead of `def test` to define the test.