Updated tests to use coords as object rather than array.