Verify test environment

top_srcdir and top_builddir must be defined.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>