Fixing unit tests to work irrespective of state of database.
Adding utility class for doing comparisons between builders and their assocaited objects

Signed-off-by: Kunal Shroff <shroffk@bnl.gov>