Adding an assertion class and making prechecks for the Detect Button Click