updated unit test

using the updated script api