Fixed minor warnings in tests.
Merge pull request #882 from loic/testfix

Fixed minor warnings in tests.