Fixed errors with basic file copying functionality.
Added basic test
Removed compiled test file