* Fixed bug in upsampler.

* Added test files.