Add discover(), "test suite" and "test factory".

Signed-off-by: Rudá Moura <rmoura@redhat.com>