core: move tests
core: fix class imports
core: improve signature parser