changed testing style and library style