Fixes `test` function.