Improve coverage of app/models/build.rb.
Merge pull request #440 from Aigeruth/improvement/coverage

Improve coverage of app/models/build.rb.