Tests for registration added.