transferred worksheet code to tests