Fixed tests and added tests for wrap and resize.

Fixes #7 

Could also fix #1. Not sure if the original wrap tests are needed anymore.