front-end testing using live sample code