Improved gradle swc building and unit test running