split css helpers into separate file, write tests