Fixes #392, update tests so that Unix time is calculated in seconds