add tests to cover progress API JS