added view tests for registration