Order js lib the same in tests than prod

merge with stuff
Refactor tests for lisibility : formatting, naming