Added equality overrides to build objects
Added unit tests and reworked equalities slightly
Removed superfluous test code from main