Fix syntax error
Perfer to define methods instead of calling test

This file is using this pattern already