tests: Avoid g_assert() use in unit tests
This is aimed towards allowing g_assert() to be compiled out of release builds by ensuring they do not affect the testsuite.
This is aimed towards allowing g_assert() to be compiled out of release builds by ensuring they do not affect the testsuite.