updated bst script and added test input for it