Standardize code style in tests