Clean up execution of --with-tests

Signed-off-by: Kieran Ramos <ramos.kieran@gmail.com>