added test from C