changed tests structure
functional test added
function test optimized, 4x slower than C-impl
unittests added, due to zmapreduce module change