wrote tests for css and removed wait dependency