Fixed PendingDeprecationWarning in backends tests

With this commit, there are no more warnings issued from the test suite with -Wall.