Replace Mocha with Lab
Add agent interface tests
Fix tests and application interface