Fix warnings in tests (CLANG).

- Statement has no effect
- Adding int to string
- Unspecified behavior when comparing character literals.

Change-Id: Ie9cb9a1036b5cf5c62890685c60dee4af1ce7148
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>