exclude test dep from compile/runtime  deps
fix NPE if no abstract is present