Updated test.js for tags testings