Fix warnings in tests

Fix warnings that only show up when compiling the tests for libstd, libextra and one in librusti. Only trivial changes.