The tests were failing due to the '~/bin' directory already existing on the machine. This patch changes the tests to use the directory name 'foo'.