migrate working tests, fix compilation
fix dependencies