Fixes compilation warning
Improves test coverage