updated RegisterTest