Added tests for max_amount