[build] fix tests and main package