Adding testing suite and fixing twine bugs.