Simple code style updates to tests. (constants/promises/delay)