[Tests] Extended and refactored tests.