improve cookies test,
add no-method-annotation test