switched tests to assertions