add function to append string to sid, fix k_c value in test