refactored test/function/complex to mocha
refactored test/function/construction to mocha