Fix config tests and switch tests to py.test
Fix adapter tests and switch tests to py.test
Remove legacy policy module
Update travis configuration to use pytest