Add getConfiguration for test and fix typo.