Tests added for logic gates