tests for the main component functionality