fixed tests file for jslint. added addLast method