Added QUnit framework for unit tests
Made convert algorithm testable