Fix tests for 100% coverage