Splitting tests into functional features.

@alexmuller, @phss