Added tests for `needlePrefix` function.
Merge pull request #145 from sphynx/master

Added `needlePrefix` tests.