More functional unit testing with external cmake script