fixed bugs with acceptance tests and close all tabs

#12 and #28