tests: Remove unneeded functions