BAC-155: Migrate JS unit tests to the new framework