generate add & view tests