add tests for val_****