Moved test to root, functions when user is in a different directory