[wip] update tests and basic api tests
set test env app port
overall tidy up
[wip] add default root route