Got register and view tests working