refactored tests to reduce duplication and added borders to css