Write a test for builds() check

Signed-off-by: Julien Danjou <julien@danjou.info>
Merge branch 'master' into pr/179