Renamed test to tmp and used functions