Added 'test' and 'publish' task to build script.