Attempt 2 for headless testing