Testing put method in shares controller