write tests for max exercises