Added test to cover 100% + fixed fatal error
Merge pull request #10 from ChristianGaertner/patch-2

Issue 10: Fixed Exception in pad() and added test coverage