added assertions for local time and tests