fixed tests (were broken by last clustered-by commits)

also only apply id if not null (same with routing value)
added some more tests
Merge pull request #598 from crate/s/clustered-by_fixes

fixed tests (were broken by last clustered-by commits)