unit test, sgd