Fixed tests to automatically refresh page