Remove any Objective-C stuff from tests

* change tests file extension from .m to .c;
* change #imports to #includes;
* link with CoreFoundation instead of Foundation;