added tests an refactored parapets