several fixes on the stdlib; fixing and extending  tests
adding tests for date
removing JS from test file