replacing the usage of deprecated fixture function by one and has functions