Remove compiler warnings.

- remove warnings in unit tests