testing bilayer device