added tests and an assertion for wrap-rewrites
Merge pull request #55 from yogthos/master

added tests and an assertion for wrap-rewrites