added jscs for sanity and updated tests