Rename tests folder to test. Move variable declaration to the top.