test for sam api instances