fixed tests

However, testDate still doesn't work because you get the error 'Uncaught
Error: Time mode requires the flot.time plugin. '.