Integration and samples tests