Added test script for #321