Added rspec tests, encountered bizarre error with stripping irregular tags