implement common prefix search from compilation database
fix deprecation warnings
add exception test for required decorator