add base class and spec mock