Adjusting library scripts for testing