add test case for default value.

Thanks coveralls.