Unit Testing

Add unit testing with QUnit.