Added layout dep and interaction code in test