Move the test data to the method main. TODO: write a test