Add unit tests and fix bugs
Update qunit to v1.15
Fix test for locate
Merge locate