fixed test count and top terminal y coord test