added test_max_NP