Make the frontend medium tests better (integrate templates)