Rename tests/ to test/

To confer to wide-spread conventions of naming the test directory
as "test", we rename ou "tests" to "test".

The "package.json" has been changed to allow `npm test` to find
the renamed test directory.