Added concept of open/closed auction and tests.