Shard unittests into subgroups.

This adds very slightly to the total time it takes to run the tests right now. However, a further CL will make them run in parallel.

BUG=
R=sebmarchand@chromium.org

Review URL: https://codereview.appspot.com/141580043