BF + TST: Robustification and testing of utility function.
Merge pull request #110 from arokem/pad_singleton

BF + TST: Robustification and testing of utility function.