These two are tests to determine whether a debt instrument can be measured at amortised cost . If the tests are both satisfied, then the debt instrument CAN be measured at amortised cost. If not satisfied, then it must be measured at fair value through profit and loss.
But even if they are satisfied, they may still be valued at fair value through profit and loss if, by doing so, it eliminates or significantly reduces a “measurement inconsistency”