make value for ApiProperty optional
fix store cookies
rm debug statement
cleanup and extended tests