add functional tests in mocha
add mocha options
update functional tests + implementation
add get function test