Separate test-runtime target; test name resolution first

Part of issue #515