test: Move target dependent test in their own folder for c API test