Fix failing tests in test-api due to misplaced parens

This is related to #210