Move nose_test_select to it's own module
Fix function inclusion and add unit tests.