Move unit tests into separate files in tests/.