rewrite test to sc-memory interface; fixed default values in sc_config.c; work on issue #48