Fix failing tests in test-api
Merge pull request #211 from danielcompton/fix-tests

Fix failing tests in test-api due to misplaced parens