bug fixes

fixed bug with script loading in core.
added junit as maven dependency