Set up the not executable test properly fixing a test error on unix

Set up the not executable test properly so plugin_test can return the fuction to call on unix or return a skip function for Windows