[test.c] add data tests to test suite
[cmake] simplify static vs dynamic builds