add unit tests for application selection
update leadegrade tests