put tests in static folder, still have a race condition no biggy
Make async and cleaner