added second lilly target profile, modified unit tests and core

run-query function to import library function rather than use local copy