Enabling tests in top-level CMakeLists.

Also trying to get doxygen comments working. For some reason though it
doesnt know how to tell that one function matches another when there is
scoping involved. Stupid? Bug? I think so. Have to check on it tomorrow.