Convert script test to spec