Added smart dev build support.
Added test coverage.