v. 0.0.5: better example in test code + fixed session validation code when generating widgets