Build tests as a separate target

It is very annoying having to build all the tests when you are
testing some code in the main library. Someone downloading the
library probably doesn't need the tests either, so these are left
out of the default target.
Explain why docs and tests are excluded by default