Replace assertion on tile size with ArgumentError exception
Add tests for ArgumentError exception