test script for ricker (good for template for extending BUGS)