[test] Adding missing on/optimize/extend test
[minor] Make options optional in the pagelet optimize