Fixed tests to not fail sometimes because of local clock. Fixes #12