Move tests to separate directory and simplify Makefile accordingly.