Add tests for build object

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>