Clean and refactor wiki tests