resolve: remove unused variable
tests: use assert_se instead of assert

Otherwise they can be optimized away with -DNDEBUG
network: remove unused variable
core: remove unused variables