added simple register writing test