js-backend: reuse assert functions in testData

It seems that assertEquals-like function has been defined at least 28 times in testData (at js-backend).

It might be a good idea to create directory with common kotlin files, that are included with every test case.

Did so.