Added first unit test, taken from qunit cookbook