Fixes #6 - avoids clobbering src, issue with test function