Somehow reverting commit 7ae590d. Test cases can't use config. It is actually right to hardcode config values for test cases.
Improved readability.