duplicating C++ SMO test