Added qUnit tests