tests(cropper): add cropper unit tests

- [ x ] cropper unit tests
- [ ] camera unit tests

Fixes #1460.