tests using mock components