splitting test into two functions for easier multiple runs with different arguments