Re-style dict in tests
Mock sleep to reduce test time