Add a missing part of the test

This was already committed in master, but not in the 1.7 branch.