fixes #1168
fixes typo
fixes for broken test
Merge pull request #1205 from aodn/issue-1168

fixes #1168