Move test API usage to segregated contribution function, Fix example in README file