Ported a few C tests that verify scaling.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>