Added qUnit and tests