Split tests into directories.

Closes #18.