Add initial tests. In addition do necessary modifications to rdatatable.js to accommodate the tests.