Refactored the Javascript testing to automatic testing, added new tests for changed order with plural and placeholder