added solutions for

prototype
builder
singleton

changed assert criteria in several test cases to get exact results