updated tests inline with JS changes