Add tests for pad function.

This brings the overall test coverage up to 99.88%.