Move tests into respective directories. Fix #126.