Fixed logic error
Added test with alternative shard chooser
Merge pull request #377 from vlastv/patch-1

Fixed logic error in Sharding component