Test function to set properties