added more tests. Test using onShow/onHide not working yet