add testing for exercise 4, swap contents