Switch to Jquery unique function
Basic tests for JS topology helpers (ref #705)