Tests

Hoogle back-end tests, fix a problem with LaTeX tests never being discovered and shift some things around.

Ideally it'd be great to solve the problem of output not being printed in proper order when ran outside of GHCi but I can't come up with anything that does the job.