Cleaned up include path for tests

Libraries in the include path must be in the list of libraries to link with
and not the other way around.