Refactored tests
added build scripts and updated packages