Revert "Remove unnecessary file"

This reverts commit c41ec119e9d02c70627eb90605135ddb3d5c6149.
Move test for validate_length_of to the right place
Fix warnings spy so it doesn't capture more things than necessary
Fix warning for this file
Be better about looking for warnings on Travis
Improve failure messages for failure message matchers