Added test checkout script and other fixes