made parseUri its own node module, change parseUri calls and tests