Remove console.log from test
Extract function to get content from class