Take build configuration into account during testing.
Fixed doxygen warnings.